import { Decorator_DtoIsNumber_Base } from '@/common/decorators/dtoIsNumber';
import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';

export class CodeSmsd_Create_Dto {
  @Decorator_DtoIsNumber_Base()
  @IsOptional()
  @ApiProperty({ type: 'bigint', description: '手机号' })
  phone?: number;

  @IsString()
  @IsOptional()
  @ApiProperty({ description: '邮箱' })
  email?: string;
}
